<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Doxygen: pcl::MultiChannel2DComparisonFeatureHandler&lt; DATA_TYPE, NUM_OF_CHANNELS &gt; 模板类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Doxygen
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('classpcl_1_1_multi_channel2_d_comparison_feature_handler.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pri-attribs">Private 属性</a> &#124;
<a href="classpcl_1_1_multi_channel2_d_comparison_feature_handler-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">pcl::MultiChannel2DComparisonFeatureHandler&lt; DATA_TYPE, NUM_OF_CHANNELS &gt; 模板类 参考</div>  </div>
</div><!--header-->
<div class="contents">

<p><a class="el" href="classpcl_1_1_feature.html" title="Feature represents the base feature class. Some generic 3D operations that are applicable to all feat...">Feature</a> utility class that handles the creation and evaluation of RGBD comparison features.  
 <a href="classpcl_1_1_multi_channel2_d_comparison_feature_handler.html#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="multi__channel__2d__comparison__feature__handler_8h_source.html">multi_channel_2d_comparison_feature_handler.h</a>&gt;</code></p>
<div class="dynheader">
类 pcl::MultiChannel2DComparisonFeatureHandler&lt; DATA_TYPE, NUM_OF_CHANNELS &gt; 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classpcl_1_1_multi_channel2_d_comparison_feature_handler.png" usemap="#pcl::MultiChannel2DComparisonFeatureHandler_3C_20DATA_5FTYPE_2C_20NUM_5FOF_5FCHANNELS_20_3E_map" alt=""/>
  <map id="pcl::MultiChannel2DComparisonFeatureHandler_3C_20DATA_5FTYPE_2C_20NUM_5FOF_5FCHANNELS_20_3E_map" name="pcl::MultiChannel2DComparisonFeatureHandler_3C_20DATA_5FTYPE_2C_20NUM_5FOF_5FCHANNELS_20_3E_map">
<area href="classpcl_1_1_feature_handler.html" alt="pcl::FeatureHandler&lt; pcl::MultiChannel2DComparisonFeature&lt; pcl::PointXY32i &gt;, pcl::MultiChannel2DDataSet&lt; DATA_TYPE, NUM_OF_CHANNELS &gt;, pcl::MultipleData2DExampleIndex &gt;" shape="rect" coords="0,0,1077,24"/>
  </map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a9d798a9622d3032e2dbd7a6ec1954acf"><td class="memItemLeft" align="right" valign="top"><a id="a9d798a9622d3032e2dbd7a6ec1954acf"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_multi_channel2_d_comparison_feature_handler.html#a9d798a9622d3032e2dbd7a6ec1954acf">MultiChannel2DComparisonFeatureHandler</a> (const int feature_window_width, const int feature_window_height)</td></tr>
<tr class="memdesc:a9d798a9622d3032e2dbd7a6ec1954acf"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor. <br /></td></tr>
<tr class="separator:a9d798a9622d3032e2dbd7a6ec1954acf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0bb1ea1f52b905e04793f6912e1795f9"><td class="memItemLeft" align="right" valign="top"><a id="a0bb1ea1f52b905e04793f6912e1795f9"></a>
virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_multi_channel2_d_comparison_feature_handler.html#a0bb1ea1f52b905e04793f6912e1795f9">~MultiChannel2DComparisonFeatureHandler</a> ()</td></tr>
<tr class="memdesc:a0bb1ea1f52b905e04793f6912e1795f9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor. <br /></td></tr>
<tr class="separator:a0bb1ea1f52b905e04793f6912e1795f9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a77c73a2dedafb1304b0e501d75bc2738"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_multi_channel2_d_comparison_feature_handler.html#a77c73a2dedafb1304b0e501d75bc2738">setFeatureWindowSize</a> (int width, int height)</td></tr>
<tr class="memdesc:a77c73a2dedafb1304b0e501d75bc2738"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the feature window size.  <a href="classpcl_1_1_multi_channel2_d_comparison_feature_handler.html#a77c73a2dedafb1304b0e501d75bc2738">更多...</a><br /></td></tr>
<tr class="separator:a77c73a2dedafb1304b0e501d75bc2738"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adb35b339a775ceac5d1e47ab309d4dd4"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_multi_channel2_d_comparison_feature_handler.html#adb35b339a775ceac5d1e47ab309d4dd4">createRandomFeatures</a> (const size_t num_of_features, std::vector&lt; <a class="el" href="classpcl_1_1_multi_channel2_d_comparison_feature.html">MultiChannel2DComparisonFeature</a>&lt; <a class="el" href="classpcl_1_1_point_x_y32i.html">PointXY32i</a> &gt; &gt; &amp;features)</td></tr>
<tr class="memdesc:adb35b339a775ceac5d1e47ab309d4dd4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates random features.  <a href="classpcl_1_1_multi_channel2_d_comparison_feature_handler.html#adb35b339a775ceac5d1e47ab309d4dd4">更多...</a><br /></td></tr>
<tr class="separator:adb35b339a775ceac5d1e47ab309d4dd4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2acf4c17b0cd02942d5bbed2637d0e56"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_multi_channel2_d_comparison_feature_handler.html#a2acf4c17b0cd02942d5bbed2637d0e56">evaluateFeature</a> (const <a class="el" href="classpcl_1_1_multi_channel2_d_comparison_feature.html">MultiChannel2DComparisonFeature</a>&lt; <a class="el" href="classpcl_1_1_point_x_y32i.html">PointXY32i</a> &gt; &amp;feature, <a class="el" href="classpcl_1_1_multi_channel2_d_data_set.html">MultiChannel2DDataSet</a>&lt; DATA_TYPE, NUM_OF_CHANNELS &gt; &amp;data_set, std::vector&lt; <a class="el" href="structpcl_1_1_multiple_data2_d_example_index.html">MultipleData2DExampleIndex</a> &gt; &amp;examples, std::vector&lt; float &gt; &amp;results, std::vector&lt; unsigned char &gt; &amp;flags) const</td></tr>
<tr class="memdesc:a2acf4c17b0cd02942d5bbed2637d0e56"><td class="mdescLeft">&#160;</td><td class="mdescRight">Evaluates a feature for a set of examples on the specified data set.  <a href="classpcl_1_1_multi_channel2_d_comparison_feature_handler.html#a2acf4c17b0cd02942d5bbed2637d0e56">更多...</a><br /></td></tr>
<tr class="separator:a2acf4c17b0cd02942d5bbed2637d0e56"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9b8967a3de520d2d5d556f63317d54fb"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_multi_channel2_d_comparison_feature_handler.html#a9b8967a3de520d2d5d556f63317d54fb">evaluateFeature</a> (const <a class="el" href="classpcl_1_1_multi_channel2_d_comparison_feature.html">MultiChannel2DComparisonFeature</a>&lt; <a class="el" href="classpcl_1_1_point_x_y32i.html">PointXY32i</a> &gt; &amp;feature, <a class="el" href="classpcl_1_1_multi_channel2_d_data_set.html">MultiChannel2DDataSet</a>&lt; DATA_TYPE, NUM_OF_CHANNELS &gt; &amp;data_set, const <a class="el" href="structpcl_1_1_multiple_data2_d_example_index.html">MultipleData2DExampleIndex</a> &amp;example, float &amp;result, unsigned char &amp;flag) const</td></tr>
<tr class="memdesc:a9b8967a3de520d2d5d556f63317d54fb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Evaluates a feature for one examples on the specified data set.  <a href="classpcl_1_1_multi_channel2_d_comparison_feature_handler.html#a9b8967a3de520d2d5d556f63317d54fb">更多...</a><br /></td></tr>
<tr class="separator:a9b8967a3de520d2d5d556f63317d54fb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae5222ac47e3212e94df2153d8a763803"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_multi_channel2_d_comparison_feature_handler.html#ae5222ac47e3212e94df2153d8a763803">generateCodeForEvaluation</a> (const <a class="el" href="classpcl_1_1_multi_channel2_d_comparison_feature.html">MultiChannel2DComparisonFeature</a>&lt; <a class="el" href="classpcl_1_1_point_x_y32i.html">PointXY32i</a> &gt; &amp;feature, std::ostream &amp;stream) const</td></tr>
<tr class="memdesc:ae5222ac47e3212e94df2153d8a763803"><td class="mdescLeft">&#160;</td><td class="mdescRight">Generates code for feature evaluation.  <a href="classpcl_1_1_multi_channel2_d_comparison_feature_handler.html#ae5222ac47e3212e94df2153d8a763803">更多...</a><br /></td></tr>
<tr class="separator:ae5222ac47e3212e94df2153d8a763803"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classpcl_1_1_feature_handler"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classpcl_1_1_feature_handler')"><img src="closed.png" alt="-"/>&#160;Public 成员函数 继承自 <a class="el" href="classpcl_1_1_feature_handler.html">pcl::FeatureHandler&lt; pcl::MultiChannel2DComparisonFeature&lt; pcl::PointXY32i &gt;, pcl::MultiChannel2DDataSet&lt; DATA_TYPE, NUM_OF_CHANNELS &gt;, pcl::MultipleData2DExampleIndex &gt;</a></td></tr>
<tr class="memitem:aa77260777b79014f5d3645f65562c699 inherit pub_methods_classpcl_1_1_feature_handler"><td class="memItemLeft" align="right" valign="top"><a id="aa77260777b79014f5d3645f65562c699"></a>
virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_feature_handler.html#aa77260777b79014f5d3645f65562c699">~FeatureHandler</a> ()</td></tr>
<tr class="memdesc:aa77260777b79014f5d3645f65562c699 inherit pub_methods_classpcl_1_1_feature_handler"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor. <br /></td></tr>
<tr class="separator:aa77260777b79014f5d3645f65562c699 inherit pub_methods_classpcl_1_1_feature_handler"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa2afe64cf81c530eafd377081208f571 inherit pub_methods_classpcl_1_1_feature_handler"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_feature_handler.html#aa2afe64cf81c530eafd377081208f571">generateCodeForEvaluation</a> (const <a class="el" href="classpcl_1_1_multi_channel2_d_comparison_feature.html">pcl::MultiChannel2DComparisonFeature</a>&lt; <a class="el" href="classpcl_1_1_point_x_y32i.html">pcl::PointXY32i</a> &gt; &amp;feature, ::std::ostream &amp;stream) const=0</td></tr>
<tr class="memdesc:aa2afe64cf81c530eafd377081208f571 inherit pub_methods_classpcl_1_1_feature_handler"><td class="mdescLeft">&#160;</td><td class="mdescRight">Generates evaluation code for the specified feature and writes it to the specified stream.  <a href="classpcl_1_1_feature_handler.html#aa2afe64cf81c530eafd377081208f571">更多...</a><br /></td></tr>
<tr class="separator:aa2afe64cf81c530eafd377081208f571 inherit pub_methods_classpcl_1_1_feature_handler"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-attribs"></a>
Private 属性</h2></td></tr>
<tr class="memitem:ac1fd9fac486bfb9bfb8be106ab423d1b"><td class="memItemLeft" align="right" valign="top"><a id="ac1fd9fac486bfb9bfb8be106ab423d1b"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_multi_channel2_d_comparison_feature_handler.html#ac1fd9fac486bfb9bfb8be106ab423d1b">feature_window_width_</a></td></tr>
<tr class="memdesc:ac1fd9fac486bfb9bfb8be106ab423d1b"><td class="mdescLeft">&#160;</td><td class="mdescRight">The width of the feature window. <br /></td></tr>
<tr class="separator:ac1fd9fac486bfb9bfb8be106ab423d1b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae33e81f567c54e16637f71838a96faf8"><td class="memItemLeft" align="right" valign="top"><a id="ae33e81f567c54e16637f71838a96faf8"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_multi_channel2_d_comparison_feature_handler.html#ae33e81f567c54e16637f71838a96faf8">feature_window_height_</a></td></tr>
<tr class="memdesc:ae33e81f567c54e16637f71838a96faf8"><td class="mdescLeft">&#160;</td><td class="mdescRight">The height of the feature window. <br /></td></tr>
<tr class="separator:ae33e81f567c54e16637f71838a96faf8"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><h3>template&lt;class DATA_TYPE, size_t NUM_OF_CHANNELS&gt;<br />
class pcl::MultiChannel2DComparisonFeatureHandler&lt; DATA_TYPE, NUM_OF_CHANNELS &gt;</h3>

<p><a class="el" href="classpcl_1_1_feature.html" title="Feature represents the base feature class. Some generic 3D operations that are applicable to all feat...">Feature</a> utility class that handles the creation and evaluation of RGBD comparison features. </p>
</div><h2 class="groupheader">成员函数说明</h2>
<a id="adb35b339a775ceac5d1e47ab309d4dd4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adb35b339a775ceac5d1e47ab309d4dd4">&#9670;&nbsp;</a></span>createRandomFeatures()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class DATA_TYPE , size_t NUM_OF_CHANNELS&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classpcl_1_1_multi_channel2_d_comparison_feature_handler.html">pcl::MultiChannel2DComparisonFeatureHandler</a>&lt; DATA_TYPE, NUM_OF_CHANNELS &gt;::createRandomFeatures </td>
          <td>(</td>
          <td class="paramtype">const size_t&#160;</td>
          <td class="paramname"><em>num_of_features</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; <a class="el" href="classpcl_1_1_multi_channel2_d_comparison_feature.html">MultiChannel2DComparisonFeature</a>&lt; <a class="el" href="classpcl_1_1_point_x_y32i.html">PointXY32i</a> &gt; &gt; &amp;&#160;</td>
          <td class="paramname"><em>features</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Creates random features. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">num_of_features</td><td>The number of random features to create. </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">features</td><td>The destination for the created random features. </td></tr>
  </table>
  </dd>
</dl>

<p>实现了 <a class="el" href="classpcl_1_1_feature_handler.html#a2a2983e7bb571ec42225aec1024f55cb">pcl::FeatureHandler&lt; pcl::MultiChannel2DComparisonFeature&lt; pcl::PointXY32i &gt;, pcl::MultiChannel2DDataSet&lt; DATA_TYPE, NUM_OF_CHANNELS &gt;, pcl::MultipleData2DExampleIndex &gt;</a>.</p>
<div class="fragment"><div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;    {</div>
<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;      features.resize (num_of_features);</div>
<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;      <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> feature_index = 0; feature_index &lt; num_of_features; ++feature_index)</div>
<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;      {</div>
<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;        features[feature_index].p1 = <a class="code" href="classpcl_1_1_point_x_y32i.html#a9414cf0e2c0c17859ce1ac55091bfc99">PointXY32i::randomPoint</a>(-<a class="code" href="classpcl_1_1_multi_channel2_d_comparison_feature_handler.html#ac1fd9fac486bfb9bfb8be106ab423d1b">feature_window_width_</a>/2, <a class="code" href="classpcl_1_1_multi_channel2_d_comparison_feature_handler.html#ac1fd9fac486bfb9bfb8be106ab423d1b">feature_window_width_</a>/2, -<a class="code" href="classpcl_1_1_multi_channel2_d_comparison_feature_handler.html#ae33e81f567c54e16637f71838a96faf8">feature_window_height_</a>/2, <a class="code" href="classpcl_1_1_multi_channel2_d_comparison_feature_handler.html#ae33e81f567c54e16637f71838a96faf8">feature_window_height_</a>/2);</div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;        features[feature_index].p2 = <a class="code" href="classpcl_1_1_point_x_y32i.html#a9414cf0e2c0c17859ce1ac55091bfc99">PointXY32i::randomPoint</a>(-<a class="code" href="classpcl_1_1_multi_channel2_d_comparison_feature_handler.html#ac1fd9fac486bfb9bfb8be106ab423d1b">feature_window_width_</a>/2, <a class="code" href="classpcl_1_1_multi_channel2_d_comparison_feature_handler.html#ac1fd9fac486bfb9bfb8be106ab423d1b">feature_window_width_</a>/2, -<a class="code" href="classpcl_1_1_multi_channel2_d_comparison_feature_handler.html#ae33e81f567c54e16637f71838a96faf8">feature_window_height_</a>/2, <a class="code" href="classpcl_1_1_multi_channel2_d_comparison_feature_handler.html#ae33e81f567c54e16637f71838a96faf8">feature_window_height_</a>/2);</div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;        features[feature_index].channel = <span class="keyword">static_cast&lt;</span><span class="keywordtype">unsigned</span> <span class="keywordtype">char</span><span class="keyword">&gt;</span>(NUM_OF_CHANNELS*(<span class="keyword">static_cast&lt;</span><span class="keywordtype">float</span><span class="keyword">&gt;</span>(rand()) / (RAND_MAX+1)));</div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;      }</div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;    }</div>
<div class="ttc" id="aclasspcl_1_1_multi_channel2_d_comparison_feature_handler_html_ac1fd9fac486bfb9bfb8be106ab423d1b"><div class="ttname"><a href="classpcl_1_1_multi_channel2_d_comparison_feature_handler.html#ac1fd9fac486bfb9bfb8be106ab423d1b">pcl::MultiChannel2DComparisonFeatureHandler::feature_window_width_</a></div><div class="ttdeci">int feature_window_width_</div><div class="ttdoc">The width of the feature window.</div><div class="ttdef"><b>Definition:</b> multi_channel_2d_comparison_feature_handler.h:178</div></div>
<div class="ttc" id="aclasspcl_1_1_multi_channel2_d_comparison_feature_handler_html_ae33e81f567c54e16637f71838a96faf8"><div class="ttname"><a href="classpcl_1_1_multi_channel2_d_comparison_feature_handler.html#ae33e81f567c54e16637f71838a96faf8">pcl::MultiChannel2DComparisonFeatureHandler::feature_window_height_</a></div><div class="ttdeci">int feature_window_height_</div><div class="ttdoc">The height of the feature window.</div><div class="ttdef"><b>Definition:</b> multi_channel_2d_comparison_feature_handler.h:180</div></div>
<div class="ttc" id="aclasspcl_1_1_point_x_y32i_html_a9414cf0e2c0c17859ce1ac55091bfc99"><div class="ttname"><a href="classpcl_1_1_point_x_y32i.html#a9414cf0e2c0c17859ce1ac55091bfc99">pcl::PointXY32i::randomPoint</a></div><div class="ttdeci">static PointXY32i randomPoint(const int min_x, const int max_x, const int min_y, const int max_y)</div><div class="ttdoc">Creates a random point within the specified window.</div></div>
</div><!-- fragment -->
</div>
</div>
<a id="a9b8967a3de520d2d5d556f63317d54fb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9b8967a3de520d2d5d556f63317d54fb">&#9670;&nbsp;</a></span>evaluateFeature() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class DATA_TYPE , size_t NUM_OF_CHANNELS&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classpcl_1_1_multi_channel2_d_comparison_feature_handler.html">pcl::MultiChannel2DComparisonFeatureHandler</a>&lt; DATA_TYPE, NUM_OF_CHANNELS &gt;::evaluateFeature </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classpcl_1_1_multi_channel2_d_comparison_feature.html">MultiChannel2DComparisonFeature</a>&lt; <a class="el" href="classpcl_1_1_point_x_y32i.html">PointXY32i</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>feature</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classpcl_1_1_multi_channel2_d_data_set.html">MultiChannel2DDataSet</a>&lt; DATA_TYPE, NUM_OF_CHANNELS &gt; &amp;&#160;</td>
          <td class="paramname"><em>data_set</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="structpcl_1_1_multiple_data2_d_example_index.html">MultipleData2DExampleIndex</a> &amp;&#160;</td>
          <td class="paramname"><em>example</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float &amp;&#160;</td>
          <td class="paramname"><em>result</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned char &amp;&#160;</td>
          <td class="paramname"><em>flag</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Evaluates a feature for one examples on the specified data set. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">feature</td><td>The feature to evaluate. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">data_set</td><td>The data set the feature is evaluated on. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">example</td><td>The example the feature is evaluated for. </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">result</td><td>The destination for the evaluation result. </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">flag</td><td>The destination for the flag corresponding to the evaluation result. </td></tr>
  </table>
  </dd>
</dl>

<p>实现了 <a class="el" href="classpcl_1_1_feature_handler.html#aad68361b8d7d046f9a15c19a36366c34">pcl::FeatureHandler&lt; pcl::MultiChannel2DComparisonFeature&lt; pcl::PointXY32i &gt;, pcl::MultiChannel2DDataSet&lt; DATA_TYPE, NUM_OF_CHANNELS &gt;, pcl::MultipleData2DExampleIndex &gt;</a>.</p>
<div class="fragment"><div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;    {</div>
<div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;      <span class="keyword">const</span> <span class="keywordtype">int</span> center_col_index = example.x;</div>
<div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;      <span class="keyword">const</span> <span class="keywordtype">int</span> center_row_index = example.y;</div>
<div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160; </div>
<div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;      <span class="keyword">const</span> <span class="keywordtype">size_t</span> p1_col = <span class="keyword">static_cast&lt;</span><span class="keywordtype">size_t</span><span class="keyword">&gt;</span> (feature.p1.x + center_col_index);</div>
<div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;      <span class="keyword">const</span> <span class="keywordtype">size_t</span> p1_row = <span class="keyword">static_cast&lt;</span><span class="keywordtype">size_t</span><span class="keyword">&gt;</span> (feature.p1.y + center_row_index);</div>
<div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160; </div>
<div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;      <span class="keyword">const</span> <span class="keywordtype">size_t</span> p2_col = <span class="keyword">static_cast&lt;</span><span class="keywordtype">size_t</span><span class="keyword">&gt;</span> (feature.p2.x + center_col_index);</div>
<div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;      <span class="keyword">const</span> <span class="keywordtype">size_t</span> p2_row = <span class="keyword">static_cast&lt;</span><span class="keywordtype">size_t</span><span class="keyword">&gt;</span> (feature.p2.y + center_row_index);</div>
<div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160; </div>
<div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;      <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> channel = feature.channel;</div>
<div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160; </div>
<div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;      <span class="keyword">const</span> <span class="keywordtype">float</span> value1 = <span class="keyword">static_cast&lt;</span><span class="keywordtype">float</span><span class="keyword">&gt;</span> (data_set (example.data_set_id, p1_col, p1_row)[channel]);</div>
<div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;      <span class="keyword">const</span> <span class="keywordtype">float</span> value2 = <span class="keyword">static_cast&lt;</span><span class="keywordtype">float</span><span class="keyword">&gt;</span> (data_set (example.data_set_id, p2_col, p2_row)[channel]);</div>
<div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160; </div>
<div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;      result = value1 - value2;</div>
<div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;      flag = (pcl_isfinite (value1) &amp;&amp; pcl_isfinite (value2)) ? 0 : 1;</div>
<div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;    }</div>
</div><!-- fragment -->
</div>
</div>
<a id="a2acf4c17b0cd02942d5bbed2637d0e56"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2acf4c17b0cd02942d5bbed2637d0e56">&#9670;&nbsp;</a></span>evaluateFeature() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class DATA_TYPE , size_t NUM_OF_CHANNELS&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classpcl_1_1_multi_channel2_d_comparison_feature_handler.html">pcl::MultiChannel2DComparisonFeatureHandler</a>&lt; DATA_TYPE, NUM_OF_CHANNELS &gt;::evaluateFeature </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classpcl_1_1_multi_channel2_d_comparison_feature.html">MultiChannel2DComparisonFeature</a>&lt; <a class="el" href="classpcl_1_1_point_x_y32i.html">PointXY32i</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>feature</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classpcl_1_1_multi_channel2_d_data_set.html">MultiChannel2DDataSet</a>&lt; DATA_TYPE, NUM_OF_CHANNELS &gt; &amp;&#160;</td>
          <td class="paramname"><em>data_set</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; <a class="el" href="structpcl_1_1_multiple_data2_d_example_index.html">MultipleData2DExampleIndex</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>examples</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; float &gt; &amp;&#160;</td>
          <td class="paramname"><em>results</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; unsigned char &gt; &amp;&#160;</td>
          <td class="paramname"><em>flags</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Evaluates a feature for a set of examples on the specified data set. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">feature</td><td>The feature to evaluate. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">data_set</td><td>The data set the feature is evaluated on. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">examples</td><td>The examples the feature is evaluated for. </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">results</td><td>The destination for the evaluation results. </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">flags</td><td>The destination for the flags corresponding to the evaluation results. </td></tr>
  </table>
  </dd>
</dl>

<p>实现了 <a class="el" href="classpcl_1_1_feature_handler.html#a1131f1c17f4b600506c88ca722902ae5">pcl::FeatureHandler&lt; pcl::MultiChannel2DComparisonFeature&lt; pcl::PointXY32i &gt;, pcl::MultiChannel2DDataSet&lt; DATA_TYPE, NUM_OF_CHANNELS &gt;, pcl::MultipleData2DExampleIndex &gt;</a>.</p>
<div class="fragment"><div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;    {</div>
<div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;      results.resize (examples.size ());</div>
<div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;      flags.resize (examples.size ());</div>
<div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;      <span class="keywordflow">for</span> (<span class="keywordtype">int</span> example_index = 0; example_index &lt; examples.size (); ++example_index)</div>
<div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;      {</div>
<div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;        <span class="keyword">const</span> MultipleData2DExampleIndex &amp; example = examples[example_index];</div>
<div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160; </div>
<div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;        <a class="code" href="classpcl_1_1_multi_channel2_d_comparison_feature_handler.html#a2acf4c17b0cd02942d5bbed2637d0e56">evaluateFeature</a> (feature, data_set, example, results[example_index], flags[example_index]);</div>
<div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;      }</div>
<div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;    }</div>
<div class="ttc" id="aclasspcl_1_1_multi_channel2_d_comparison_feature_handler_html_a2acf4c17b0cd02942d5bbed2637d0e56"><div class="ttname"><a href="classpcl_1_1_multi_channel2_d_comparison_feature_handler.html#a2acf4c17b0cd02942d5bbed2637d0e56">pcl::MultiChannel2DComparisonFeatureHandler::evaluateFeature</a></div><div class="ttdeci">void evaluateFeature(const MultiChannel2DComparisonFeature&lt; PointXY32i &gt; &amp;feature, MultiChannel2DDataSet&lt; DATA_TYPE, NUM_OF_CHANNELS &gt; &amp;data_set, std::vector&lt; MultipleData2DExampleIndex &gt; &amp;examples, std::vector&lt; float &gt; &amp;results, std::vector&lt; unsigned char &gt; &amp;flags) const</div><div class="ttdoc">Evaluates a feature for a set of examples on the specified data set.</div><div class="ttdef"><b>Definition:</b> multi_channel_2d_comparison_feature_handler.h:112</div></div>
</div><!-- fragment -->
</div>
</div>
<a id="ae5222ac47e3212e94df2153d8a763803"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae5222ac47e3212e94df2153d8a763803">&#9670;&nbsp;</a></span>generateCodeForEvaluation()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class DATA_TYPE , size_t NUM_OF_CHANNELS&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classpcl_1_1_multi_channel2_d_comparison_feature_handler.html">pcl::MultiChannel2DComparisonFeatureHandler</a>&lt; DATA_TYPE, NUM_OF_CHANNELS &gt;::generateCodeForEvaluation </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classpcl_1_1_multi_channel2_d_comparison_feature.html">MultiChannel2DComparisonFeature</a>&lt; <a class="el" href="classpcl_1_1_point_x_y32i.html">PointXY32i</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>feature</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::ostream &amp;&#160;</td>
          <td class="paramname"><em>stream</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Generates code for feature evaluation. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">feature</td><td>The feature for which code is generated. </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">stream</td><td>The destination for the generated code. </td></tr>
  </table>
  </dd>
</dl>
<div class="fragment"><div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;    {</div>
<div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;      stream &lt;&lt; <span class="stringliteral">&quot;ERROR: RegressionVarianceStatsEstimator does not implement generateCodeForBranchIndex(...)&quot;</span>;</div>
<div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;      <span class="comment">//stream &lt;&lt; &quot;const float value = ( (*dataSet)(dataSetId, centerY+&quot; &lt;&lt; feature.p1.y &lt;&lt; &quot;, centerX+&quot; &lt;&lt; feature.p1.x &lt;&lt; &quot;)[&quot; &lt;&lt; static_cast&lt;int&gt;(feature.colorChannel) &lt;&lt; &quot;]&quot;</span></div>
<div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;      <span class="comment">//  &lt;&lt; &quot; - &quot; &lt;&lt; &quot;(*dataSet)(dataSetId, centerY+&quot; &lt;&lt; feature.p2.y &lt;&lt; &quot;, centerX+&quot; &lt;&lt; feature.p2.x &lt;&lt; &quot;)[&quot; &lt;&lt; static_cast&lt;int&gt;(feature.colorChannel) &lt;&lt; &quot;] );&quot; &lt;&lt; ::std::endl;</span></div>
<div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;    }</div>
</div><!-- fragment -->
</div>
</div>
<a id="a77c73a2dedafb1304b0e501d75bc2738"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a77c73a2dedafb1304b0e501d75bc2738">&#9670;&nbsp;</a></span>setFeatureWindowSize()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class DATA_TYPE , size_t NUM_OF_CHANNELS&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classpcl_1_1_multi_channel2_d_comparison_feature_handler.html">pcl::MultiChannel2DComparisonFeatureHandler</a>&lt; DATA_TYPE, NUM_OF_CHANNELS &gt;::setFeatureWindowSize </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>width</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>height</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Sets the feature window size. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">width</td><td>The width of the feature window. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">height</td><td>The height of the feature window. </td></tr>
  </table>
  </dd>
</dl>
<div class="fragment"><div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;    { </div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;      <a class="code" href="classpcl_1_1_multi_channel2_d_comparison_feature_handler.html#ac1fd9fac486bfb9bfb8be106ab423d1b">feature_window_width_</a> = width; </div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;      <a class="code" href="classpcl_1_1_multi_channel2_d_comparison_feature_handler.html#ae33e81f567c54e16637f71838a96faf8">feature_window_height_</a> = height; </div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;    }</div>
</div><!-- fragment -->
</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>ml/include/pcl/ml/<a class="el" href="multi__channel__2d__comparison__feature__handler_8h_source.html">multi_channel_2d_comparison_feature_handler.h</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><b>pcl</b></li><li class="navelem"><a class="el" href="classpcl_1_1_multi_channel2_d_comparison_feature_handler.html">MultiChannel2DComparisonFeatureHandler</a></li>
    <li class="footer">制作者 <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
